import request from '@/api/request'

export function article(id) {
    return request({
        url: '/post',
        method: 'get',
        params: {
            category: id
        }
    })
}

export function category(data) {
    return request({
        url: '/category',
        method: 'get',
        data: data
    })
}